var math/big.natOne
44 uses
math/big (current package)
ftoa.go#L201: lower.init(tmp.sub(mant, natOne), exp)
ftoa.go#L205: upper.init(tmp.add(mant, natOne), exp)
int.go#L38: var intOne = &Int{false, natOne}
int.go#L1121: t := z.abs.sub(x.abs, natOne) // no underflow because |x| > 0
int.go#L1123: z.abs = t.add(t, natOne)
int.go#L1147: t := nat(nil).sub(x.abs, natOne)
int.go#L1163: t := z.abs.sub(x.abs, natOne)
int.go#L1165: z.abs = t.add(t, natOne)
int.go#L1179: x1 := nat(nil).sub(x.abs, natOne)
int.go#L1180: y1 := nat(nil).sub(y.abs, natOne)
int.go#L1181: z.abs = z.abs.add(z.abs.or(x1, y1), natOne)
int.go#L1198: y1 := nat(nil).sub(y.abs, natOne)
int.go#L1209: x1 := nat(nil).sub(x.abs, natOne)
int.go#L1210: y1 := nat(nil).sub(y.abs, natOne)
int.go#L1224: x1 := nat(nil).sub(x.abs, natOne)
int.go#L1225: z.abs = z.abs.add(z.abs.or(x1, y.abs), natOne)
int.go#L1231: y1 := nat(nil).sub(y.abs, natOne)
int.go#L1242: x1 := nat(nil).sub(x.abs, natOne)
int.go#L1243: y1 := nat(nil).sub(y.abs, natOne)
int.go#L1244: z.abs = z.abs.add(z.abs.and(x1, y1), natOne)
int.go#L1261: y1 := nat(nil).sub(y.abs, natOne)
int.go#L1262: z.abs = z.abs.add(z.abs.andNot(y1, x.abs), natOne)
int.go#L1272: x1 := nat(nil).sub(x.abs, natOne)
int.go#L1273: y1 := nat(nil).sub(y.abs, natOne)
int.go#L1291: y1 := nat(nil).sub(y.abs, natOne)
int.go#L1292: z.abs = z.abs.add(z.abs.xor(x.abs, y1), natOne)
int.go#L1301: z.abs = z.abs.sub(x.abs, natOne)
int.go#L1307: z.abs = z.abs.add(x.abs, natOne)
nat.go#L37: natOne = nat{1}
nat.go#L1073: m1 := nat(nil).shl(natOne, n)
nat.go#L1138: *powers[0] = powers[0].set(natOne)
nat.go#L1366: if x.cmp(natOne) <= 0 {
nat.go#L1428: return z.add(z, natOne)
prime.go#L87: nm1 := nat(nil).sub(n, natOne)
prime.go#L107: if y.cmp(natOne) == 0 || y.cmp(nm1) == 0 {
prime.go#L116: if y.cmp(natOne) == 0 {
prime.go#L152: if len(n) == 0 || n.cmp(natOne) == 0 {
prime.go#L216: s := nat(nil).add(n, natOne)
rat.go#L276: b = natOne
rat.go#L292: b = natOne
rat.go#L401: return len(x.b.abs) == 0 || x.b.abs.cmp(natOne) == 0
ratconv.go#L347: p := natOne
ratconv.go#L358: r = r.add(r, natOne)
ratconv.go#L360: q = nat(nil).add(q, natOne)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |